<%@page import="com.xe.gae.control.XEResourcesManager"%>
<%@page import="com.xe.gae.control.XEDataStorageService"%>
<%@page import="com.xe.gae.model.XEResource"%>
<%@ page import="com.xe.gae.control.XEBlobstoreService" %>
<%
XEBlobstoreService blobstoreService = new XEBlobstoreService ();
XEResourcesManager rm = new XEResourcesManager();
String rk=request.getParameter("resource-key");
 
XEDataStorageService dss=new XEDataStorageService();

XEResource	r = (XEResource) dss.findByEncodeKey(XEResource.class, rk);

String key = rm.getEncodeKey(r);
String path = "";
if(r!=null) path=r.getPath();
%>
<body>
	<form action="/_xe/admin" method="get">
        <%=path%>
        <input type="hidden" name="action" id="action" value="delete"/>
        <input type="hidden" name="blob-key" id="blob-key" value="<%=request.getParameter("blob-key")%>"/>
        <input type="hidden" name="resource-key" id="resource-key" value="<%=request.getParameter("resource-key")%>"/>
        <input type="submit" name="submit" value="Delete"/>
        <input type="button" value="Cancel" onclick="window.location.href='./browse.jsp'"></td>
	</form>	
</body>